import { dictByType } from '@/api/armyScreenApi.js'

export function useCommonMethods () {
  /**
   * 获取数据字典
   * @param dictType
   * @returns {Promise<axios.AxiosResponse<any>>}
   */
  function dictByTypeService (dictType) {
    const paramObj = {
      dictType
    }
    return dictByType(paramObj)
  }

  return {
    dictByTypeService
  }
}

export default useCommonMethods

